class Dog {
    constructor(name,breed){
        this.name = name;
        this.breed = breed;
    }
    bark(){
        console.log(`bark bark ! my name is ${this.name}`);
    }
    cuddle(){
        console.log('i love u owner');
    }
    static info(){
        console.log('A dog is better than a cat by 10 mins');
    }
    get description(){
        return `${this.name} is a ${this.breed} type of dog` 
    }
    set nicknames(value){
        console.log('------------set -------------');
        this.nick = value.trim();
    }
    get nicknames(){
        return this.nicker.toUpperCase();
    }
}
const snickers = new Dog('snickers','King Charles');
console.log(snickers.description);
snickers.nicknames = 'fhj'
console.log(snickers.nicknames);